package com.xckj.teacher.ui.activity

import android.text.Html
import com.xckj.teacher.R
import com.xckj.teacher.databinding.ActivityProtocolBinding
import com.xckj.teacher.framework.BaseActivity
import com.xckj.teacher.util.get

/**
 * 使用协议
 */
class ProtocolActivity : BaseActivity<ActivityProtocolBinding>() {

    inner class ProxyClick {


        fun back() {
            finish()
        }

    }

    override fun loadLayout(): Int {
        return R.layout.activity_protocol
    }

    override fun initData() {
        dataBinding.click = ProxyClick()
        val data = intent.get<String>("data") ?: ""
        val name = intent.get<String>("name") ?: ""
        dataBinding.tvTitle.text = name
        dataBinding.tvContent.text = Html.fromHtml(data)
    }

    override fun setListener() {

    }
}